package com.basic.modules.nykf.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@TableName("n_ykf_renew_batch")
public class RenewBatchEntity {

    @TableId(type = IdType.INPUT)
    private String renewBatchId;

    // 客户id
    private Long customerId;

    // 收费模式
    private String sfmsVal;

    // 业务id
    private Long customerShopBusinessId;

    // 续费索引
    private Integer renewIndex;

    // 应收费用
    private BigDecimal ysfy;

    // 应收汇总
    private BigDecimal yshz;

    // 收款汇总
    @TableField(exist = false)
    private BigDecimal skCount;

    @TableField(exist = false)
    private BigDecimal tkCount;

    // 是否完成续费
    private Integer renewStatus;

    // 续费业务开始时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date xfywkssj;

    // 续费业务结束时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date xfywjssj;

    // 续费完成时间
    private Date completeTime;

    @TableField(exist = false)
    private List<RenewDetailsEntity> detailsList;

    // 创建时间
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}